package net.pixelpracht.tmx {
	public class TmxImage {
		public var format:String;
		public var data:String;
		public var source:String;
		public var transparencyColor:uint = 0x00000;
		public var width:int;
		public var height:int;
		
		public var useTransparencyColor:Boolean = false;
		
		public function TmxImage(image:XML) {
			format = image.hasOwnProperty("@format") ? image.@format : null;
			data = image.hasOwnProperty("data") ? image.data : null;
			source = image.@source;
			if (image.hasOwnProperty("@trans")) {
				useTransparencyColor = true;
				transparencyColor = uint("0x"+image.@trans);
			}
			width = image.@width;
			height = image.@height;
		}
	}
}